<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link id="bootstrap-style" th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/bootstrap-responsive.min.css}" rel="stylesheet">
    <link th:href="@{/css/common.css}" rel="stylesheet">
    <link id="base-style" th:href="@{/css/style.css}" rel="stylesheet">
    <link rel="stylesheet" type="text/css" th:href="@{/js/elementui/theme-chalk/index.css}"/>

    <!-- start: Favicon -->
    <link rel="shortcut icon" th:href="@{img/favicon.ico}">
    <!-- end: Favicon -->

    <style>
        <!--  修改菜单栏离开后显示白色的问题  -->

        .breadcrumb {
            height: 100%;
            margin: -20px -20px 20px -20px;
            line-height: 34px;
            background: #F7F7F7;
            border: 0px;
            color: #888;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
            -webkit-border-radius: 0px;
            -moz-border-radius: 0px;
            border-radius: 0px;
        }

        body {
            background: #1C2B36;
        }

        .row-fluid [class*="span"] {
            margin-left: 0px;
        }

        #title {
            font-family: "Microsoft YaHei", "Microsoft Sans Serif", "Microsoft SanSerf", 微软雅黑;
            font-size: 25px;
            font-weight: 800;
        }

        #content {
            width: 85.47%;
        }

        .neon-wrap {
            position: absolute;
            top: 20%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }

        .neon-wrap span {
            display: block;
        }

        .neon-text {
            font-family: 'Monoton', cursive;
            font-size: 100px;
            animation: neon 4s infinite;
        }

        .neon-by {
            color: #404040;
            text-shadow: -3px 0px 5px #404040, 0px 0px 2px #404040;
        }

        @keyframes neon {
            0%, 30%, 32%, 34% {
                color: #222;
                text-shadow: -3px 0px 5px #222, 0px 0px 2px #222;
            }
            31%, 33%, 35%, 100% {
                color: #404040;
                text-shadow: -3px 0px 5px #404040, 0px 0px 2px #404040;
            }
        }
    </style>
</head>

<body style="height: 750px;">
<!--删除提示模态框-->
<div class="modal fade" id="delcfmModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body">是否要删除？</div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="deleteProperty()">确定</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<!--删除提示模态框结束-->

<div class="container-fluid-full">
    <div class="row-fluid">

        <noscript>
            <div class="alert alert-block span10">
                <h4 class="alert-heading">Warning!</h4>
                <p>You need to have <a href="" target="_blank">JavaScript</a> enabled to use this site.</p>
            </div>
        </noscript>

        <!-- start: Content -->
        <div id="content" class="span10" style="width: 100%">
            <ul class="breadcrumb" th:if="${#request.getParameter('breadcrumb') == 'true'}">
                <li>
                    <i class="fas fa-circle-notch"></i>
                    <a id="home" href="#" onclick="parent.location.reload()">主页</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">点位管理</a></li>
            </ul>
            <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header" data-original-title>
                        <h2><i class="halflings-icon white edit"></i><span class="break"></span>修改点位</h2>
                    </div>
                    <div class="box-content">
                        <!--<form class="form-horizontal"  th:action="@{/device/addDevice}" method="post">-->
                        <form id="form1" class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label class="control-label">点位id</label>
                                    <div class="controls">
                                        <span class="input-xlarge uneditable-input" th:text="${point.id}"></span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">点位代码</label>
                                    <div class="controls">
                                        <input class="input-xlarge focused" type="text" placeholder=""
                                               name="graphName" required="required" id="devCode" th:value="${point.devCode}">
                                        <div style="display: inline" id="checkCode">
                                        </div>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">点位名称</label>
                                    <div class="controls">
                                        <input class="input-xlarge focused" type="text" placeholder=""
                                               name="graphName" required="required" id="pointName" th:value="${point.pointName}">
                                        <div style="display: inline" id="checkName">
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="button" class="btn btn-primary" th:id="${point.id}" onclick="editPoint(this.id)">修改</button>
                                    <button type="button" class="btn btn-primary" onclick="toPoint()">返回</button>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div><!--/span-->
            </div><!--/row-->
        </div>
    </div>
</div>

<div class="clearfix"></div>

<div th:replace="main::common_js"></div>

<script th:src="@{/js/pointEdit.js}"></script>
<script th:src="@{/js/detect-element-resize.js}"></script>
<script th:src="@{/js/iframe-resize.js}"></script>
<script th:inline="javascript" th:src="@{/js/vue.js}"></script>
<script th:src="@{/js/elementui/index.js}"></script>

<script>
    breadcrumb()
    window.onload = function() {
        parent.modifyTitle('点位')
    }
</script>

</body>
</html>
